package com.dog.basics.bean.model.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 消息通知用户读取状态
 * </p>
 *
 * @author guonh
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dog_news_read")
public class DogNewsRead extends Model<DogNewsRead> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键标识
     */
    private Long id;

    /**
     * 用户标识
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 消息标识
     */
    @TableField("news_id")
    private Long newsId;

    /**
     * 默认 : 已读
     */
    @TableField("news_read")
    private Integer newsRead;

    /**
     * 上传时间
     */
    @TableField("create_time")
    private Long createTime;

    /**
     * 上传者
     */
    @TableField("create_by")
    private Long createBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Long updateTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private Long updateBy;


}
